package fhb.spindler.ba;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Set;

import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.IntentSender;
import android.content.ServiceConnection;
import android.content.SharedPreferences;
import android.content.IntentSender.SendIntentException;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.AssetManager;
import android.content.res.Resources;
import android.content.res.Resources.Theme;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
//import android.view.Display;
import android.text.style.ClickableSpan;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import fhb.spindler.ba.clickHandler;


public class ShimmerBTConnectActivity extends clickHandler {
	protected static final int REQUEST_ENABLE_BT = 0;
	private Button Connect;
    private Button save;
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);		
		
		Connect = (Button) findViewById(R.id.connectbtn);
		Connect.setOnClickListener(connect);	
		save = (Button) findViewById(R.id.savebutton1);
	
	}
	
	/**called when connectBtn Clicked **/
	public void connectBtn(View view)
	{	
		startActivity(new Intent(ShimmerBTConnectActivity.this, clickHandler.class));
	}
	
	/**called when saveBtn Clicked **/
	public void saveBtn(View view)
	{
		
		startActivity(new Intent(view.getContext(), clickHandler.class));
	}
		
		/*// erster Button um Sensor zu suchen und verbinden
		connectButton1 = (Button) findViewById(R.id.connectbutton1);
		

		// erster Button um Daten zu speichern
		saveButton1 = (Button) findViewById(R.id.savebutton1);
		saveButton1.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				setContentView(R.layout.save);
			}

		});*/
	}


// public void Sizehelper(){
// Display display = getWindowManager().getDefaultDisplay();
// int width = display.getWidth();
// int height = display.getHeight();
// }

